import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        user
    },
    state: {
        post: '',
        workAddress: ''
    },
    mutations: {
        updatePost(state, post) {
            state.post = post
        },
        updateWorkAddress(state, workAddress) {
            state.workAddress = workAddress
        }
    }
})
